﻿using System.Collections.Generic;
using Poem.Core.Entities;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

namespace Poem.Application.Dtos
{
    /// <summary>
    /// 诗
    /// Volumn和Num是全唐诗中的卷和序号，
    /// </summary>
    public class PoemDto : EntityDto<int>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 点评
        /// </summary>
        public string Comments { get; set; }

        /// <summary>
        /// 卷（全唐诗）
        /// </summary>
        public string Volumn { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public string Num { get; set; }

        /// <summary>
        /// 诗人id
        /// </summary>
        public int PoetID { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public Poet Author { get; set; }


        /// <summary>
        /// 分类
        /// </summary>
        public ICollection<CategoryPoemDto> PoemCategories { get; set; }
    }
}
